<div class="content-detail">
	<div class="title">
		<?php
		if ($content) {
			echo $content->title;
		} else {
			echo "Error";
		}
		?>
	</div>
	<?php if ($content) { ?>
		<?php if ($content->category_id != CATEGORY_PAGES) { ?>
			<div class="date">
				<?php echo date('d/m/Y', strtotime($content->date)); ?>
			</div>
		<?php } ?>
		<div class="intro">
			<?php echo $content->intro; ?>
		</div>
		<div class="body">
			<?php echo $content->body; ?>
		</div>
		<div class="share">
			<a href="https://twitter.com/share" data-size="large"
				class="twitter-share-button"
				data-url="http://fergieargentina.com/<?php echo $content->getLink(); ?>"
				data-text="<?php echo $content->title; ?>"
				data-via="FergieArgentina" data-count="none"
			>Tweet</a>
			<script>
				!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
				if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";
				fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
			</script>
			<div class="fb-like face-like-button"
			data-href="http://fergieargentina.com/<?php echo $content->getLink(); ?>"
			data-send="false" data-width="50" data-show-faces="false"
		></div>
		</div>
		<?php if ($content->category_id != CATEGORY_PAGES) { ?>
			<div class="footer">
				<label>Categoría:</label>
				<?php /*echo $this->Html->link($content['Category']['name'], array('controller' => 'contents', 'action' => 'index', 'category' => $content['Category']['id'] . '-' . $content['Category']['name'])); ?>
				<?php if (!empty($content['Content']['tags'])) { ?>
					<label>Tags:</label>
					<?php
					$result = '';
					foreach ($content['Content']['tags'] as $tag) {
						$result .= $this->Html->link($tag['Tag']['name'], array('controller' => 'contents', 'action' => 'index', 'tag' => $tag['Tag']['id'] . '-' . $tag['Tag']['name'])) . ', ';
					}
					echo substr($result, 0, -2);
					?>
				<?php }*/ ?>
			</div>
			<div class="comments">
				<meta property="fb:app_id" content="159817237461806"/>
				<div class="fb-comments"
					data-href="http://fergieargentina.com/<?php echo $content->getLink(); ?>"
					data-num-posts="5" data-width="670"
				></div>
			</div>
		<?php } ?>
	<?php } else { ?>
		<div class="body">
			La página que estás buscando no existe.
		</div>
	<?php } ?>
</div>